package com.foreknow.elm.dao;

import com.foreknow.elm.po.User;

public interface UserDao {
    /**
     * 登录
     * @param userId
     * @param password
     * @return User对象
     * @throws Exception
     */
    public User getUserByIdByPass(String userId,String password) throws Exception;

    /**
     * 注册
     * @param user
     * @return int
     * @throws Exception
     */
    public int saveUser(User user)throws Exception;
}
